package com.cuit.xsc.weishare.model;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

public class PrivateMsgResult implements Serializable
{
	// id:私信的id
	// time:发表私信的时间

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private long time;

	public PrivateMsgResult()
	{

	}

	public PrivateMsgResult(String json) throws JSONException
	{
		this();
		JSONObject jsonObject = new JSONObject(json);
		constructQQJson(jsonObject);
	}

	public PrivateMsgResult(JSONObject jsonObject)
	{

		constructQQJson(jsonObject);
	}

	private void constructQQJson(JSONObject json)
	{
		try
		{
			//LogUtil.e(this, "json=" + json.toString());
			id = json.getString("id");
			time = json.getLong("time");

		} catch (JSONException e)
		{
			e.printStackTrace();
		}

	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public long getTime()
	{
		return time;
	}

	public void setTime(long time)
	{
		this.time = time;
	}

}
